package com.int_tech.user.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Date;

/**
 * 用户登录实体类
 * Created by Administrator on 2018/12/10.
 */
@Entity
@Table(name = "h_user")
@DynamicInsert
@DynamicUpdate
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class User {

    @Id
    private int id;

    //账号
    private String name;

    //密码
    private String password;

    //姓名
    private String fullName;

    //创建时间---建档时间
    @Temporal(TemporalType.TIMESTAMP)
    @Column(updatable = false)
    private Date createTime;

    //更新时间
    @Temporal(TemporalType.TIMESTAMP)
    private Date updateTime;

    //是否删除用户
    private String isDel;
}
